--
--   Title: Nishan Management Traps MIB in SNMP v1 format
--   Version 1.0
--
--  Revision history:
--
--  4/20/01: initial version created by extracting traps from
--  NISHAN-MGT.mib.
--
--  4/24/01: removed nSswLaAggPortsDownTrap and nSswLaAggPortsUpTrap,
--  which were never implemented.  See Springbok TIR #1619 and #1620.
--
--  6/18/01: merged 1000, 2000, and 3000 Series traps into a single file.
--
--  7/13/01: corrected enterprise ID and varbind list for all v1 traps,
--  removed v2 traps (now in NISHAN-TRAPS-v2.mib).
--
--  9/26/01: updated Saturn trap descriptions to match v2.0 implementation,
--  to resolve TIR #1780 and others.
--
--  9/28/01: redefined all Saturn traps to match latest v2.0 plans.
--
--  10/9/01: restored 9/26 trap definitions, v2.0 won't include revised traps.
--
--  10/10/01: revised Saturn trap definitions yet again, as more information
--  about the real implementation becomes available.  Removed trap 14 entirely.
--
--  10/30/01: added the v2.1 Saturn trap changes that did not make it into v2.0
--  (same as 9/28/01 version).
--
--  3/27/02: added the NVS trap changes.
--
--  6/19/02: removed phase-1 NVS traps
--
--  10/10/02: Assigned NNM compatible severity levels so they could be categorized
--  correctly.
--
--  03/12/03: Included support for IPS 5000 series.
--
--  03/04/03: Added support for E_Port traps
--
NISHAN-TRAPS DEFINITIONS ::= BEGIN

--
--  NISHAN-TRAPS-v1.MIB
--

IMPORTS
     OBJECT-TYPE
          FROM RFC-1212
     TRAP-TYPE
          FROM RFC-1215
     nishan
          FROM NISHAN-SMI
    ;

-- nishanTrapMsg is defined here for use in the trap variable binding list.
-- nishanTrapMsg is not a true MIB variable and cannot be read by an SNMP GET.

nishanProducts  OBJECT IDENTIFIER ::= { nishan 3 }
nishanMgmt      OBJECT IDENTIFIER ::= { nishan 1 }
nishanMgtTraps  OBJECT IDENTIFIER ::= { nishanMgmt 12 }

DisplayString ::= OCTET STRING

nishanTrapMsg       OBJECT-TYPE
     SYNTAX         DisplayString (SIZE (0..255))
     ACCESS         read-only
     STATUS         mandatory
     DESCRIPTION
"A textual log message included in many Nishan Systems enterprise-specific traps."
     ::= { nishanMgtTraps 1 }

-- ======================================================================
-- 3000/4000/5000 Series traps
-- ======================================================================
-- The following traps are supported only on the IPS 3000, 4000 and 5000 Series switches.
-- These are sent in SNMP v1 format.  All traps contain a single DisplayString
-- in the varbind list.  The DisplayString is a log entry that describes the event.
--
-- NOTE: the Enterprise ID in the trap definitions below is not complete.
-- The Enterprise ID field actually contains the sysObjectID value of the
-- system sending the trap.  Thus the real Enterprise ID in the trap is:
--   nishanProducts.3.1.1    for models 1100 and 1200 Gateways
--   nishanProducts.1.1.1    for models 2200 and 2400 SCSI switches
--   nishanProducts.2.1.1    for model 3100 FC switch
--   nishanProducts.2.1.2    for model 3300 FC switch
--   nishanProducts.2.2.1    for model 4100 FC switch
--   nishanProducts.2.2.2    for model 4300 FC switch
--      where nishanProducts is 1.3.6.1.4.1.4369.3
--
-- See NISHAN-PRODUCTS.mib for these OID definitions.
-- When preparing trap definition files for management platforms that
-- accept a wildcard for the trailing portion of the Enterprise ID,
-- use 1.3.6.1.4.1.4369.3.* to cover SNMP v1 traps from all Nishan devices.
--

nSswSNSTrap                      TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"The trap sender has been elected as the primary SNS server."
     --#TYPE       "New primary SNS server elected."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   NORMAL
     --#CATEGORY   "Configuration Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 1

nSswFlashOperationTrap           TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"A new software image has been successfully installed in flash memory."
     --#TYPE       "Software image installed."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   NORMAL
     --#CATEGORY   "Configuration Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 3

nSswEnvVoltageUpperThreshTrap     TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"One of the power supply voltages has exceeded its maximum threshold."
     --#TYPE       "Maximum voltage threshold exceeded."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   CRITICAL
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 5

nSswEnvVoltageLowerThreshTrap     TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
      DESCRIPTION
"One of the power supply voltages has dropped below its minimum threshold."
     --#TYPE      "Minimum voltage threshold passed."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   CRITICAL
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 6

nSswEnvTempUpperThreshTrap        TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"The internal temperature has exceeded its maximum threshold."
     --#TYPE       "Maximum temperature threshold exceeded."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   CRITICAL
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 7

nSswEnvChasFanStatusTrap         TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"A fan's rotation rate dropped below the minimum threshold."
     --#TYPE      "Fan failed."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   WARNING
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 8

nSswEnvChasPowerSupplyStatusTrap TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"A power supply has changed state.  The DisplayString argument
indicates whether the power supply status changed from up to down
or down to up."
     --#TYPE      "Power supply status changed."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   WARNING
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 9

nSswLaAggDownTrap     TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"A link Aggregator is no longer functioning. Either it has been
manually disabled, or all member ports are down."
     --#TYPE      "Aggregated group is down."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   CRITICAL
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 10

nSswLaAggUpTrap     TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"A link Aggregator is functioning normally again. It may have been
manually re-enabled, or one of the member ports is back up."
     --#TYPE      "Aggregated group is now up."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   NORMAL
     --#CATEGORY   "Configuration Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 11


-- ======================================================================
-- iFCP gateway traps
-- ======================================================================
-- The following traps are supported only on the IPS Model 3300 and 4300 switches.

ifcpBackupDown  TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"Sent by a primary iFCP port when it cannot be backed up by its configured
backup port. The backup port may be unreachable or not responding, or the
backup port may be unable to act as backup due to its configuration.
This trap may be sent after the switch is reset, when the configuration is
changed, or when an existing backup port becomes unreachable.
This trap repeats when the backup connection is retried unsuccessfully.
There is no interruption of storage traffic, but the primary iFCP port is
no longer protected from failure.
The text message in the variable binding list includes the IP address of
the primary iFCP port that cannot be backed up, and the IP address of the port
configured to be the backup. The cause of the failure (e.g., timeout,
rejected, incorrect configuration) is not provided.
There is no trap sent when the backup relationship is established successfully
or re-established successfully."
     --#TYPE       "Backup Down"
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   WARNING
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 14

ifcpBackupActivated TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"This trap is sent by a backup iFCP port when the backup port begins
to activate its backup connections.  This may be caused by the
primary port becoming unreachable, or the primary port informing the
backup port that the primary link has gone down.
The backup port will attempt to establish all remote connections learned
from the primary port. If there are any learned connections, this trap will
be followed by other traps, defined below, to indicate the success or failure
of each remote connection.
The text message in the variable binding list of this trap includes the
IP address of the primary port that has failed, and the IP address of the
backup port that is reporting the primary port's failure. "
     --#TYPE       "Backup Activated"
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   CRITICAL
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 15

ifcpRemoteConnectionUp TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"This trap is sent by an iFCP port when it successfully establishes an
iFCP connection to a remote SAN.  If the port makes multiple remote
connections, one trap is sent for each connection. The connection may
be a normal connection or a backup connection.
The text message in the variable binding list includes the IP address
of the iFCP port making the connection, and the IP address of the
remote end of the connection."
     --#TYPE       "Remote Connection Up"
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   NORMAL
     --#CATEGORY   "Configuration Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 16

ifcpRemoteConnectionDown   TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"This trap is sent by an iFCP port when an existing remote connection
is lost or terminated normally, or when a connection attempt fails.
If multiple connections are lost or terminated, or multiple concurrent
connection attempts fail, one trap is sent for each connection.
This trap repeats when connection retries fail.
The text message in the variable binding list includes the IP address
of the local iFCP port making the connection, and the IP address of the
remote end of the connection.  This trap does not specify the reason
for the connection being down (e.g., timeout on existing connection,
user configuration change, remote end rejects connection, etc.)"
     --#TYPE       "Remote Connection Down"
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   CRITICAL
     --#CATEGORY   "Error Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 17

nishanEPortConfigurationChanged     TRAP-TYPE
     ENTERPRISE    nishanProducts
     VARIABLES     { nishanTrapMsg }
     DESCRIPTION
"This trap is sent when an E_Port configuration change is made by the user.
 Possible user initiated configuration changes are: 1) Zoning policies,
 2) Interconnect modes, 3) FC SAN IDs, 4) Domain IDs, 5) Port Zoning option,
 or 6) Cleanup actions.  For example, for 1) Zoning policies, the nishanTrapMsg
 may be: (Eport 4) Config Change: Zone policy change."
     --#TYPE      "E_Port Zone policy changed."
     --#SUMMARY    "%s"
     --#ARGUMENTS  { 0 }
     --#SEVERITY   NORMAL
     --#CATEGORY   "Configuration Events"
     --#TIMEINDEX  1
     --#STATE      OPERATIONAL
     ::= 18

nishanEPortZoningChanged TRAP-TYPE
  ENTERPRISE  nishanProducts
  VARIABLES   { nishanTrapMsg }
  DESCRIPTION
"This trap is sent when a zoning update is initiated on an FC switch.  A zoning
 update is required when there is a mismatch between the Nishan switch's zoning
 configuration, and that of a FC switch. This occurs if a zoning change is made
 from Nishan switch, or a FC switch attempts to alter a zone that is under the
 control of a Nishan switch."
      --#TYPE      "E_Port zoning changed on connected FC switch."
      --#SUMMARY    "%s"
      --#ARGUMENTS  { 0 }
      --#SEVERITY   WARNING
      --#CATEGORY   "Error Events"
      --#TIMEINDEX  1
      --#STATE      OPERATIONAL
      ::= 19

nishanEPortFailedtoEstablishISL TRAP-TYPE
  ENTERPRISE  nishanProducts
  VARIABLES   { nishanTrapMsg }
  DESCRIPTION
"This trap is sent when a e_port failed to establish an ISL link with another
 switch.  The message within the trap will contain information about why the ISL
 link failed to establish.  For example if it is due to RA_TOV mismatches, the
 message returned would be (Eport 1) ELP error: ED_TOV or RA_TOV mismatch."
      --#TYPE      "E_Port failed to estable ISL."
      --#SUMMARY    "%s"
      --#ARGUMENTS  { 0 }
      --#SEVERITY   CRITICAL
      --#CATEGORY   "Error Events"
      --#TIMEINDEX  1
      --#STATE      OPERATIONAL
      ::= 20

nishanEPortFabricReconfiguration TRAP-TYPE
  ENTERPRISE  nishanProducts
  VARIABLES   { nishanTrapMsg }
  DESCRIPTION
"This trap is sent when a fabric reconfiguration happens on an e_port.  This
 could happen if a new FC switch is added to an exsisting fabric.  Or a switch
 on the fabric sends out a an ELP. or requests a re-build of the fabric."
      --#TYPE      "E_Port fabric reconfiguration."
      --#SUMMARY    "%s"
      --#ARGUMENTS  { 0 }
      --#SEVERITY   WARNING
      --#CATEGORY   "Error Events"
      --#TIMEINDEX  1
      --#STATE      OPERATIONAL
      ::= 21
END